package be.luys.almacen.gui;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;

/**
* The first panel.
*/
public class StartPanel extends JFrame
{
    /**
      * The UID
      */
    private static final long serialVersionUID = 1L;

    private static StartPanel instance;

    /**
     * Singleton design.
     */
    public static synchronized StartPanel getPanel()
    {
        if (instance == null)
            instance = new StartPanel();
        return instance;
    }

    /**
       * The constructor.
       */
    private StartPanel()
    {
        super();
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        setTitle("Almacen");
        setSize((int) (dim.getWidth() * 0.75), (int) (dim.getHeight() * 0.75));
        setLocationRelativeTo(null);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

        Container cp = getContentPane();
        cp.setLayout(new BorderLayout());
        cp.add(StatusPanel.getPanel(), BorderLayout.SOUTH);
    }

}